<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head>
</head>
<body>

<?php

class Site {
    public $url;
    public $title;

    function __construct($arg1, $arg2)
    {
        $this->url = $arg1;
        $this->title = $arg2;
    }

    /**
     * @return mixed
     */
    public function getUrl()
    {
        return $this->url;
    }

    /**
     * @param mixed $url
     */
    public function setUrl($url)
    {
        $this->url = $url;
    }

    /**
     * @return mixed
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * @param mixed $title
     */
    public function setTitle($title)
    {
        $this->title = $title;
    }

}

$site = new Site("https://www.baidu.com", "百度");
echo $site->title;

class Bar {

public function testPublic() {
echo "Bar::testPublic\n";
}

public function testPrivate() {
echo "Bar::testPrivate\n";
}

public function test() {
 $this.testPublic();
 $this.testPrivate();
}
}

class Foo extends Bar {

public function testPublic() {
}

}

interface iTemplate {




}







?>

</body>
</html>





